package com.syxp.pda.entity.base;

import java.util.Set;

/**
 * version: 1.0
 * 
 * date: 2011.7.13
 * 
 * author mengqingxin
 *
 */
public class CHKLine {
	
	private int chkLineID ;//巡检路线编号
	
	private String lineName ;//路线名称
	
	private byte isCHKOrder ;//时候按强制顺序
	
	private String lineDesc ;//路线描述

	//EL_CHKPlan（巡检计划表）与EL_CHKLine（巡检路线表）:多对多（通过EL_Plan_Line体现）
	private Set<CHKPlan> chkPlans ;
	
	//EL_CHKLine（巡检计划表）与EL_DefineIDZone（区域ID表）：多对多（通过EL_Line_Zone体现）
	private Set<DefineIDZone> defineIDZones ;
	
	//EL_CHKLine（巡检路线表）与EL_User(用户表)：多对多（通过EL_User_Line体现）
	private Set<User> users ;
	
	//EL_CHKLine（巡检路线表）与EL_Profess（专业信息表）：多对一
	private Profess profess;
	
	
	/**
	 * @return the profess
	 */
	public Profess getProfess() {
		return profess;
	}

	/**
	 * @param profess the profess to set
	 */
	public void setProfess(Profess profess) {
		this.profess = profess;
	}

	public int getChkLineID() {
		return chkLineID;
	}

	public void setChkLineID(int chkLineID) {
		this.chkLineID = chkLineID;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public byte getIsCHKOrder() {
		return isCHKOrder;
	}

	public void setIsCHKOrder(byte isCHKOrder) {
		this.isCHKOrder = isCHKOrder;
	}
	
	public void setIsCHKOrder(String isCHKOrder) {System.out.println("isCHKOrder"+isCHKOrder);
		this.isCHKOrder = isCHKOrder!=null&&"on".equalsIgnoreCase(isCHKOrder)?(byte)1:(byte)0;
	}

	public String getLineDesc() {
		return lineDesc;
	}

	public void setLineDesc(String lineDesc) {
		this.lineDesc = lineDesc;
	}

	public Set<CHKPlan> getChkPlans() {
		return chkPlans;
	}

	public void setChkPlans(Set<CHKPlan> chkPlans) {
		this.chkPlans = chkPlans;
	}

	public Set<DefineIDZone> getDefineIDZones() {
		return defineIDZones;
	}

	public void setDefineIDZones(Set<DefineIDZone> defineIDZones) {
		this.defineIDZones = defineIDZones;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}
	
	
	
}
